package com.qf.zsq.service.impl;

import com.qf.entity.AddressEntity;
import com.qf.mapper.AddressMapper;
import com.qf.pojo.AddressPojo;
import com.qf.zsq.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    AddressMapper addressMapper;
    @Override
    public boolean addAddress(AddressEntity ae) {
        return addressMapper.addAddress(ae);
    }

    @Override
    public List<AddressPojo> queryAddress(Integer cid) {
        return addressMapper.queryAddress(cid);
    }
}
